﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SPDeveloper.Web
{
    public static class Utility
    {
        public static string SubString(this string str, int s, int e) 
        {
            if (str.Length < e)
            {
                return str.Substring(s, str.Length);
            }
            else
            {
                return str.Substring(s, e);
            }
        }
    }
}